home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Control Panel Hide 7.xpl
< prev
next >
Wrap
Text File
|
1999-07-15
|
2KB
|
81 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="Appearance\General\Control Panel"
"NAME"="Visible pages in "Display" (NT)"
"LANGUAGE"="VBScript"
"VERSION"="1.04"
"TEXT 1"="Show "Background" page in Display control"
"TEXT 2"="Show "Screen Saver" page in Display control"
"TEXT 3"="Show "Appearance" page in Display control"
"TEXT 4"="Show "Settings" page in Display control"
"TEXT 5"="Show "ActiveDesktop" page in Display control "
"DESCRIPTION 1"="To show an page inside the "Display" control, activate it. To hide it, deactivate it."
"DESCRIPTION 2"="If all items are hidden, the "Display" control will not start."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
"COMMENT 2"=" "
sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
sPath2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
sBAK="NoDispBackgroundPage" 'all dword (1 = remove)
sSCR="NoDispScrSavPage"
sAPP="NoDispAppearancePage"
sSET="NoDispSettingsPage"
sACD="NoActiveDesktopChanges"
Sub Plugin_Initialize
if GetWinVer=2 then
i=RegReadValue(sPath & sBAK)
if i<>1 then SetUIElement 1,true
i=RegReadValue(sPath & sSCR)
if i<>1 then SetUIElement 2,true
i=RegReadValue(sPath & sAPP)
if i<>1 then SetUIElement 3,true
i=RegReadValue(sPath & sSET)
if i<>1 then SetUIElement 4,true
i=RegReadValue(sPath2 & sACD)
if i<>1 then SetUIElement 5,true
else
Disable()
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sPath,sBAK)
Call WriteIt(2,sPath,sSCR)
Call WriteIt(3,sPath,sAPP)
Call WriteIt(4,sPath,sSET)
Call WriteIt(5,sPath2,sACD)
End Sub
Sub WriteIt(ITM,PAT,VAL)
b=GetUIElement(ITM)
if b=false then
call RegWriteValue(PAT & VAL,1,2)
else
chk=RegReadValue(PAT & VAL)
if IsEmpty(chk)=false then
Call RegDeleteValue(PAT & VAL)
end if
end if
end sub
Sub Plugin_Terminate
End Sub